home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 February
/
EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso
/
earcd
/
patches
/
ip20t21a.lha
/
IFX20to21a_Patch
/
Patches2.lha
/
Rexx
/
AutoFX
/
EOT_Swirl.ifx
< prev
next >
Wrap
Text File
|
1995-04-17
|
699b
|
34 lines
/*
* EOT_Swirl.ifx
* Written by Thomas Krehbiel
*
* Animated Swirl Effect.
*
* Inputs:
* Word(Arg(1),1) = Frame number (1 - N)
* Word(Arg(1),2) = Main filename ("-" if not specified)
* Word(Arg(1),3) = Swap filename ("-" if not specified)
* Word(Arg(1),4) = Sequence number (?)
* Word(Arg(1),5) = Total number of frames (N)
*
* Returns:
* 0 if successful, non-zero on failure
*
*/
OPTIONS RESULTS
framenum = Word(Arg(1),1)
framemax = Word(Arg(1),5)
base = 'Autofx_Swirl_'
start = GETCLIP(base||'Start')
end = GETCLIP(base||'End')
/* linear interpolation */
amt = start + ((end - start + 1) * (framenum-1) % (framemax-1))
Hook Swirl amt AntiAlias
EXIT rc